﻿/**************************************************************
 *
 * 唯一标识：5fedcfbc-f581-4db3-9ebe-5ef0eb23ae9b
 * 命名空间：Sgr.UPMS.Application.Commands.Organizations
 * 创建时间：2023/8/23 13:52:11
 * 机器名称：DESKTOP-S0D075D
 * 创建者：antho
 * 电子邮箱：fengqinhua2016@163.com
 * 描述：
 *
 **************************************************************/

using MediatR;
using Sgr.Application.Commands;
using Sgr.Domain.Uow;
using Sgr.UPMS.Domain.Users;

namespace Sgr.UPMS.Application.Commands.Organizations
{
    /// <summary>
    /// 注册组织机构
    /// </summary>
    /// <remarks>
    /// 用户故事： 作为组织机构管理人员，希望可以在平台上快速完成组织机构注册
    /// </remarks>
    public class RegisterOrgCommand : IRequest<CommandResult<bool>>, IRequireUnitOfWork
    {
        /// <summary>
        /// 组织机构名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 身份验证类型
        /// </summary>
        public UserAuthenticationType AuthenticationType { get; set; }

        /// <summary>
        /// 验证账号（手机号或邮箱地址）
        /// </summary>
        public string Account { get; set; } = string.Empty;

        /// <summary>
        /// 验证码
        /// </summary>
        public string VerificationCode { get; set; } = string.Empty;

        /// <summary>
        /// 验证用途(四位字符)
        /// </summary>
        public string VerificationPurpose { get; set; } = "";

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string? LoginPassword { get; set; } = string.Empty;
    }
}